<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %} {% endblock %}</title>
    <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrap-theme.css" rel="stylesheet">
    <link href="/static/jquery_ui/jquery-ui.min.css" rel="stylesheet">
    <link href="/static/iziModal/iziModal.min.css" rel="stylesheet">
    <link href="/static/keyboard/css/keyboard.min.css" rel="stylesheet">
</head>
<body class="container">
<div class="row">
    <div class="btn-group btn-group-lg btn-block" role="group">
        <button type="button" class="btn btn-primary" id="btn_home">主页</button>
        <button type="button" class="btn btn-primary" id="btn_report_day">日报表</button>
        <button type="button" class="btn btn-primary" id="btn_report_month">月报表</button>
        <button type="button" class="btn btn-primary" id="btn_login">登录</button>
    </div>
</div>

{% block content %}{% endblock %}
</body>
<footer>@2018 星宇工务</footer>
</html>
<script src="/static/jquery/jquery-3.3.1.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.js"></script>
<script src="/static/jquery_ui/jquery-ui.min.js"></script>
<script src="/static/iziModal/iziModal.min.js"></script>
<script src="/static/keyboard/js/jquery.keyboard.js"></script>
<script>
    $(document).ready(function () {
        // 按钮响应
        $("#btn_home").click(function () {
            $(location).attr("href", "/");
        });
        $("#btn_report_day").click(function () {
            $(location).attr("href", "/report_day/");
        });
        $("#btn_report_month").click(function () {
            $(location).attr("href", "/report_month/");
        });
        $("#btn_login").click(function () {
            $(location).attr("href", "/login/");
        });
        $('input').keyboard({
            usePreview: true,
            restrictInput: true,
            useCombos: false,
            autoAccept: true,
            layout: 'custom',
            customLayout: {
                'normal': [
                    '1 2 3 4 5',
                    '6 7 8 9 0',
                    '{b} {accept}'
                ],
            },
            display: {
                del: '\u2326:Delete',
                accept: '确定',
                undo: '↺'
            }
        });
    });

</script>
{% block script %} {% endblock %}